package cn.tedu.egmvcboot1.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UserLoginDTO {
    @ApiModelProperty(value = "用户名",required = true,example = "张三")
    @NotBlank(message = "用户名不能为空")
    @Size(min = 1,max = 20,message = "用户名长度为1-20个字符")
    private String username;

    @ApiModelProperty(value = "密码",required = true,example = "123456")
    @NotBlank(message = "密码不能为空")
    @Size(min = 1,max = 80,message = "密码长度为1-80个字符")
    private String password;
}
